import axios from 'axios'

export default axios.create({
    baseUrl: 'http://192.168.14.129',
    transformRequest: [
        function (data) {
            if (!data) return
            const formData = new FormData()
            Object.keys(data).forEach((key) => {
                formData.append(key, data[key])
            })
            return formData
        },
    ],
})
